//
//  favoritesModel.m
//  uniform
//
//  Created by Apple on 15/8/28.
//  Copyright (c) 2015年 giuseppe. All rights reserved.
//

#import "favoritesModel.h"

@implementation favoritesModel



static favoritesModel *_order;

+(favoritesModel *)order
{
    @synchronized ([favoritesModel class])
    {
        if (_order == nil)
        {
            _order = [[favoritesModel alloc] init];
        }
    }
    return _order;
}



+ (instancetype) initWithDicAttributes:(NSDictionary *)dic {

    favoritesModel *tmp = [[favoritesModel alloc] init];

    if (dic) {

        tmp.amount = [dic objectForKey:@"amount"];
        tmp.favoritelid = [dic objectForKey:@"favoritelid"];
        tmp.hits = [dic objectForKey:@"hits"];
        tmp.imgurl = [dic objectForKey:@"imgurl"];
        tmp.name = [dic objectForKey:@"name"];
        tmp.price = [dic objectForKey:@"price"];
        tmp.suitid = [dic objectForKey:@"suitid"];

    }
    
    
    return tmp;
    
}



@end
